package com.woniuxy.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.woniuxy.mapper.MemberMapper;
import com.woniuxy.pojo.Member;
import com.woniuxy.service.MemberService;

@Service
public class MemberServiceImp implements MemberService {

	@Resource
	private MemberMapper memberMapper;
	
	@Override
	public List<Member> findMember(String message) {
		return memberMapper.find("%"+message+"%");
	}

	@Override
	public List<Member> getAll() {
		return memberMapper.getAll();
	}

	@Override
	public int updateMember(Member member) {
		return memberMapper.updateMember(member);
	}

}
